import { http } from '@/utils/http'
import type { memberProfile } from '@/types/member'
import type { profileParams } from '@/types/member'
// 获取个人信息接口： /member/profile
export const memberProfileAPI = () => {
  return http<memberProfile>({
    method: 'GET',
    url: '/member/profile',
  })
}

export const putMemberProfileAPI = (data: profileParams) => {
  return http<memberProfile>({
    method: 'PUT',
    url: '/member/profile',
    data,
  })
}
